#ifndef XMLPUB_H_
#define XMLPUB_H_

#define SP		' '
#define HTAB	'\t'
#define CR		'\r'
#define LP		'\n'

#define SKIPSPACE(s,len,c) while(1){if(*s == SP || *s == HTAB || *s == CR || *s == LP)\
{s++;c++;if(c >= len)return -1;}else break;};

int ParseWhiteSpace(const wchar_t *pbuf,int len);
int ParseWChar(const wchar_t *pbuf,const wchar_t c);
int ParseString(const char *pbuf,int len,const char *pstr);
int ParseDecNumber(const wchar_t *pbuf,int len,int& nNbr);
int ParseHexNumber(const wchar_t *pbuf,int len,int& nNbr);
int ParseStringInsensitive(const wchar_t *pbuf,int len,const wchar_t *pstr);
//lxt
int SkipComment(const char **,int);

#endif

